package com.example.jf.jfapp.bean.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by jf on 2017/7/29.
 */

public class NearUserResponse {
    private List<ResultBean> result;

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    public static class ResultBean implements Parcelable{
        /**
         * createdAt : Fri Jun 23 15:38:28 CST 2017
         * emailVerified : false
         * followeeStatus : false
         * headProtrait : http://ac-EkMW81DI.clouddn.com/w2fWi1T59oVsqJzFKNouPmqO28RKGWHhQPXcd1Wy.jpg
         * latitude : 31.834972
         * longitude : 118.780389
         * mobilePhoneVerified : false
         * objectId : 594cc574570c357d06925a54
         * updatedAt : Thu Jul 06 16:44:15 CST 2017
         * username : weidong
         */

        private String createdAt;
        private boolean emailVerified;
        private boolean followeeStatus;
        private String headProtrait;
        private double latitude;
        private double longitude;
        private boolean mobilePhoneVerified;
        private String objectId;
        private String updatedAt;
        private String username;

        protected ResultBean(Parcel in) {
            createdAt = in.readString();
            emailVerified = in.readByte() != 0;
            followeeStatus = in.readByte() != 0;
            headProtrait = in.readString();
            latitude = in.readDouble();
            longitude = in.readDouble();
            mobilePhoneVerified = in.readByte() != 0;
            objectId = in.readString();
            updatedAt = in.readString();
            username = in.readString();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(createdAt);
            dest.writeByte((byte) (emailVerified ? 1 : 0));
            dest.writeByte((byte) (followeeStatus ? 1 : 0));
            dest.writeString(headProtrait);
            dest.writeDouble(latitude);
            dest.writeDouble(longitude);
            dest.writeByte((byte) (mobilePhoneVerified ? 1 : 0));
            dest.writeString(objectId);
            dest.writeString(updatedAt);
            dest.writeString(username);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Parcelable.Creator<ResultBean> CREATOR = new Creator<ResultBean>() {
            @Override
            public ResultBean createFromParcel(Parcel in) {
                return new ResultBean(in);
            }

            @Override
            public ResultBean[] newArray(int size) {
                return new ResultBean[size];
            }
        };

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public boolean isEmailVerified() {
            return emailVerified;
        }

        public void setEmailVerified(boolean emailVerified) {
            this.emailVerified = emailVerified;
        }

        public boolean isFolloweeStatus() {
            return followeeStatus;
        }

        public void setFolloweeStatus(boolean followeeStatus) {
            this.followeeStatus = followeeStatus;
        }

        public String getHeadProtrait() {
            return headProtrait;
        }

        public void setHeadProtrait(String headProtrait) {
            this.headProtrait = headProtrait;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public boolean isMobilePhoneVerified() {
            return mobilePhoneVerified;
        }

        public void setMobilePhoneVerified(boolean mobilePhoneVerified) {
            this.mobilePhoneVerified = mobilePhoneVerified;
        }

        public String getObjectId() {
            return objectId;
        }

        public void setObjectId(String objectId) {
            this.objectId = objectId;
        }

        public String getUpdatedAt() {
            return updatedAt;
        }

        public void setUpdatedAt(String updatedAt) {
            this.updatedAt = updatedAt;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }
    }
}
